{% load i18n htmlentities %}

<html>
    <head>
        {% block meta %}{% endblock %}
        {% block style %}
        <link rel="stylesheet" href="{{ settings.ADS_MEDIA_URL }}ads_client.css"/>
        {% if adbox.ad_model.css %}<link rel="stylesheet" href="{{ adbox.ad_model.css.url }}"/>{% endif %}
        {% if adbox.styleset and adbox.styleset.css %}
        <link rel="stylesheet" href="{{ adbox.styleset.css.url }}"/>
        {% endif %}
        {% endblock %}
    </head>
    <body>
        <div class="ads_conteiner">
            {% for ad in ads %}
            <div class="ads_ad">
                <a href="{{ ad.get_hit_url }}?referer={{ referer }}" target="_parent">
                    <h6>{{ ad.title|htmlentities }}</h6>
                    <span class="ads_description">{{ ad.description|htmlentities }}</span>
                    <span class="ads_url">{{ ad.get_short_url }}</span>
                </a>
            </div>
            {% endfor %}
        </div>
        <div class="ads_footer">Ads by {{ settings.ADS_SYSTEM_MARK }}</div>
    </body>
</html>

